import Vue from 'vue'

export default {
  /* ********** 俱乐部 *************** */
  // 获取俱乐部详细信息
  async detail (data) {
    return Vue.http.post('./gxRclubInfo/detailRclub', data)
  },

  // 编辑俱乐部详细信息
  async update (data) {
    return Vue.http.post('./gxRclubInfo/updateClub', data)
  },

  async getRclubListLikeByRclubName (data) {
    return Vue.http.post('./gxRclubInfo/getRclubListLikeByRclubName', data)
  },

  /* ********** 工作人员 *************** */
  // 获取工作人员列表
  async employeeList (data) {
    return Vue.http.post('./gxRclubEmployee/getRclubEmployeeRcList', data)
  },

  // 新增工作人员
  async createEmployee (data) {
    return Vue.http.post('./gxRclubEmployee/saveRclubEmployee', data)
  },

  // 更新工作人员
  async updateEmployee (data) {
    return Vue.http.post('./gxRclubEmployee/saveRclubEmployee', data)
  },

  async messageList (data) {
    return Vue.http.post('./gxActivityLeaveMessage/getLeaveMessageList', data)
  },

  // 回复
  async messageReply (data) {
    let params = Object.assign({}, data)
    return Vue.http.post('./gxActivityLeaveMessage/reLeaveMessage', params)
  },

  // 删除
  async messageRemove (data) {
    return Vue.http.post('./gxActivityLeaveMessage/delLeaveMessageInfo', data)
  },

  /* ********** 俱乐部荣誉 *************** */
  async getHonorList (data) {
    return Vue.http.post('./gxRclubHonor/getRclubHonorList', data)
  },

  async createHonor (data) {
    return Vue.http.post('./gxRclubHonor/saveRclubHonor', data)
  },

  async updateHonor (data) {
    return Vue.http.post('./gxRclubHonor/saveRclubHonor', data)
  }
}
